#include "RSSDocumentLink.h"

//Default Function : Create & Destroy & Operator

RSSDocumentLink::RSSDocumentLink() :
	link(), lastRenewalDate()
{
	
}

RSSDocumentLink::RSSDocumentLink( string link, Date lastRenewalDate ) :
	link(link), lastRenewalDate(lastRenewalDate)
{
	
}

RSSDocumentLink::RSSDocumentLink( const RSSDocumentLink& source ) :
	link( source.link ), lastRenewalDate( source.lastRenewalDate )
{

}

RSSDocumentLink::~RSSDocumentLink()
{

}


RSSDocumentLink& RSSDocumentLink::operator = ( const RSSDocumentLink& source )
{
	this->link 		 	  = source.link;
	this->lastRenewalDate = source.lastRenewalDate;

	return (*this);
}

bool RSSDocumentLink::operator == ( const RSSDocumentLink& other )
{
	bool ret = false;
	
	if ( this->link == other.link &&
		 this->lastRenewalDate == other.lastRenewalDate )
	{
		ret = true;
	}

	return ret;
}

bool RSSDocumentLink::operator != ( const RSSDocumentLink& other )
{   
	bool ret = true;

	if ( this->link == other.link &&
		 this->lastRenewalDate == other.lastRenewalDate )
	{
		ret = false;
	}

	return ret;
}


		
	
